package com.bwie.ai.remote;

import com.bwie.common.core.constant.ServiceNameConstants;
import com.bwie.common.core.domain.Result;
import com.bwie.doctor.domain.vo.MedDoctorVo;
import com.bwie.system.api.factory.RemoteFileFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient("bwie-doctor")
public interface RemotDocker {
    @GetMapping("/queryDoctorList/{symptomName}")
    public List<MedDoctorVo> queryDoctorList(@PathVariable String symptomName);

    /**
     * 挂号
     * @return
     */
    @PostMapping("/registered/register/{dockerName}/{patientName}")
    public Result register(@PathVariable String dockerName, @PathVariable String patientName);

    /**
     * 取消挂号
     * @param dockerName
     * @param patientName
     * @return
     */
    @DeleteMapping("/registered/cancelRegister/{dockerName}/{patientName}")
    public Result cancelRegister(@PathVariable String dockerName,@PathVariable String patientName);

    /**
     * 查询挂号状态
     * @param dockerName
     * @param patientName
     * @return
     */
    @GetMapping("/getRegisterState")
    public Integer getRegisterState(@RequestParam String dockerName,@RequestParam String patientName);

    /**
     * 根据患者姓名查询挂号记录
     * @param
     * @param patientName
     * @return
     */
    @GetMapping("/getRegisterByPatientName/{patientName}")
    public Integer getRegisterByPatientName(@PathVariable String patientName);
}
